package com.fs.sys.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.Fastjson2TypeHandler;
import com.fs.common.base.domain.entity.BaseEntity;
import lombok.Data;

import java.util.Map;

/**
 * 短信
 *
 * @author  LiuQi 2025/4/29-8:46
 * @version V1.0
 **/
@Data
@TableName(value = "sys_phone_message", autoResultMap = true)
public class PhoneMessageEntity extends BaseEntity {
    /**
     * 手机号
     */
    private String phone;

    /**
     * 模板
     */
    private String template;

    /**
     * 参数
     */
    @TableField(typeHandler = Fastjson2TypeHandler.class)
    private Map<String, Object> params;

    /**
     * 发送结果，OK为成功
     */
    private String result;

    /**
     * 发送失败时异常码
     */
    private String message;

    /**
     * 回执id
     */
    private String bizId;

    /**
     * 请求id
     */
    private String requestId;

    /**
     * 扩展信息
     */
    @TableField(typeHandler = Fastjson2TypeHandler.class)
    private Map<String, Object> extInfo;

}
